
/**
 * This program uses each of the rpimitive datatyrp apprantly.
 * 
 * @author Amrita Mukherjee
 * @version 04/10/2012
 */
public class A9_2
{
    public static void main(String[] args)
    {
        boolean datatypeBoolean = true;
        char datatypeChar = 'A';
        byte datatypeByte = 127;
        short datatypeShort = 'a';
        int datatypeInt = 1;
        long datatypeLong = 9223372036854775807L;
        float datatypeFloat = 3.4028F;
        double datatypeDouble = 1.7977;
        
        System.out.println("Example of boolean datatype is : " + datatypeBoolean );
        System.out.println("Example of char datatype is : " + datatypeChar );
        System.out.println("Example of byte datatype is : " + datatypeByte );
        System.out.println("Example of short datatype is : " + datatypeShort );
        System.out.println("Example of int datatype is : " + datatypeInt );
        System.out.println("Example of long datatype is : " + datatypeLong );
        System.out.println("Example of float datatype is : " + datatypeFloat );
        System.out.println("Example of double datatype is : " + datatypeDouble );
             
        
    }
}
/*
 * my test session:
 * Example of boolean datatype is : true
Example of char datatype is : A
Example of byte datatype is : 127
Example of short datatype is : 97
Example of int datatype is : 1
Example of long datatype is : 9223372036854775807
Example of float datatype is : 3.4028
Example of double datatype is : 1.7977
*/
